// pages/func/pull-to-refresh/2/index.js
const { $http, $wx } = getApp()
Page({

    async fetch(){ await $http.pull(null, 'room') },
    
    async refresh(){
        await this.fetch()
        // this.selectComponent('#page').close()
        $wx.refresh_close(this)
    },
})